package p2000;

import java.util.Scanner;

public class Main2027统计元音 {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int t = Integer.parseInt(scanner.nextLine());
        for (int k = 0; k < t; k++) {
            String str = scanner.nextLine();
            char[] arr = str.toCharArray();
            int a = 0, e = 0, i = 0, o = 0, u = 0;
            for (char c : arr) {
                switch (c) {
                    case 'a':
                        a++;
                        break;
                    case 'e':
                        e++;
                        break;
                    case 'i':
                        i++;
                        break;
                    case 'o':
                        o++;
                        break;
                    case 'u':
                        u++;
                        break;
                    default:
                        break;
                }
            }

            System.out.println("a:" + a);
            System.out.println("e:" + e);
            System.out.println("i:" + i);
            System.out.println("o:" + o);
            System.out.println("u:" + u);

            if (k < t - 1) {
                System.out.println();
            }
        }
    }

}
